//Bus.h
#ifndef BUS_H_
#define BUS_H_
#include "Vehicle.h"
#include <string>
using namespace std;
class Bus : public Vehicle {
private:
    int passenger_load;

public:
    static string use;
    Bus(int wh = 0, double we = 0, int pl = 0) : Vehicle(wh, we), passenger_load(pl) {}

    Bus(const Bus& bus) {
        this->setWeight(bus.weight);
        this->setWheels(bus.wheels);
        passenger_load = bus.passenger_load;
    }

    ~Bus() {}

    void Display() override {
        cout << "这是一辆客车，有" << getWheels()
            << "个轮子，自重" << getWeight() << "吨，载客不超过"
            << passenger_load << "人。" << endl;
    }

    void setPassengerLoad(int passenger_load) {
        this->passenger_load = passenger_load;
    }

    int getPassengerLoad() {
        return this->passenger_load;
    }
};
string Bus::use = "人员运输";
#endif